﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnInsert_Click(object sender, EventArgs e)
    {
        StudentDto studentDto = new StudentDto();
        studentDto.StudentId = Convert.ToInt32(txtStudentId.Text);
        studentDto.Name = txtName.Text;
        studentDto.Surname = txtSurname.Text;
        studentDto.Age = Convert.ToInt32(txtAge.Text);
        //new comment
        StudentDao studentDao = new StudentDao();
        studentDao.insertStudentDto(studentDto);

    }
}
